<?php

return [
    'monitor' => [
        80 => 'temp', 
        81 => 'co2', 
        83 => 'light', 
        84 => 'soil', 
        82 => 'liquid',
        85 => 'soilph',
//        116 => 'video'
    ],
    'warn_level' => [
        1 => ['name'=>'一级告警', 'class'=>'error'],
        2 => ['name'=>'二级告警', 'class'=>'warning'],
        3 => ['name'=>'三级告警', 'class'=>'primary'],
        4 => ['name'=>'四级告警', 'class'=>'success'],

    ],
    'control' => [
        86 => 'control'
    ],
    'video' => [
        61 => 'video'
    ],
    'models' => [
        
    ],
    'surfix' => [ 
        80 => [  'envitemp' => '温度', 'envihumi' => '湿度', ], 
        81 => [ 'Concentration'=>'浓度', ], 
        83 => [ 'LightIntensity'=>'光照度', ], 
        84 => [ 'Soiltemp' => '温度', 'Soilhumi' => '湿度', 'SoilCond'=>'电导率'], 
        82 => [ 'LevelValue' => '液位' ],
        85 => [ 'SoilPH' => '酸碱度' ],
        33 => [  'envitemp' => '温度', 'envihumi' => '湿度', ],
    ],
    'itemField' => [
        'hwarn'=>'上限状态', 'lwarn'=>'下限状态',
    ],
    'consta' => [ 
        80 => [ 'envihumi' , '连接状态'  ], 
        81 => [ 'Concentration' , '连接状态' ], 
        83 => [ 'LightIntensity' , '连接状态' ], 
        84 => [ 'envihumi' , '连接状态' ], 
        82 => [ 'LevelValue' , '连接状态' ],
        85 => [ 'SoilPH' , '连接状态' ], 
        33 => [ 'envihumi' , '连接状态'  ],
    ],
    'desc' => [ 
        80 =>[ 'num' => 'rd_envihumi_num', 'name' => '环境温湿度' ], 
        81 =>[ 'num' => 'rd_Concentration_num', 'name' => '二氧化碳' ], 
        83 =>[ 'num' => 'rd_LightIntensity_num', 'name' => '光照度' ], 
        84 =>[ 'num' => 'rd_SoilTH_num', 'name' => '土壤温湿度' ], 
        82 =>[ 'num' => 'rd_LevelValue_num', 'name' => '液位' ],
        85 =>[ 'num' => 'rd_SoilPH_num', 'name' => '土壤酸碱度' ],
        33 =>[ 'num' => 'rd_envihumi_num', 'name' => '环境温湿度' ],
    ],
    'units' => [ 
        80 => [  'envitemp' => '°C', 'envihumi' => '%RH', ], 
        81 => [ 'Concentration'=>'PPM', ], 
        83 => [ 'LightIntensity'=>'LUX', ], 
        84 => [ 'Soiltemp' => '°C', 'Soilhumi' => '%RH','SoilCond' => 'us/cm',], 
        82 => [ 'LevelValue' => 'M' ], 
        85 => [ 'SoilPH' => 'PH' ],
        33 => [  'envitemp' => '°C', 'envihumi' => '%RH', ],
    ],
    'icons'=>[
        'envitemp' => 'wendu-item', 
        'envihumi' => 'shidu-item',
        'Concentration'=>'co2',
        'LightIntensity'=>'light',
        'Soiltemp' => 'wendu-item', 
        'Soilhumi' => 'shidu-item',
        'LevelValue' => 'liquid',
        'SoilPH' => 'soil-ph',
        'SoilCond' => 'soil-cond'
    ],
    'map_models' => [
        80 => [ 'real' => '\App\Models\RealAir', 'history' => '\App\Models\Air' ], 
        81 => [ 'real' => '\App\Models\RealCo2', 'history' => '\App\Models\Co2' ], 
        83 => [ 'real' => '\App\Models\RealLight', 'history' => '\App\Models\Light' ], 
        84 => [ 'real' => '\App\Models\RealSoil', 'history' => '\App\Models\Soil' ], 
        82 => [ 'real' => '\App\Models\RealLiquid', 'history' => '\App\Models\Liquid' ],
        85 => [ 'real' => '\App\Models\RealSoilPh', 'history' => '\App\Models\SoilPh' ],
        86 => [ 'real' => '\App\Models\RealControlDevice', 'history' => '\App\Models\ControlDevice' ],
    ],
    'map_tables' => [
        1 => [ 'real' => 't_realdata_single', 'history' => 't_hisdata_single' ], 
        10 => [ 'real' => 't_realdata_three', 'history' => 't_hisdata_three' ], 
        5 => [ 'real' => 't_realdata_power', 'history' => 't_hisdata_power' ], 
        2 => [ 'real' => 't_realdata_Generator', 'history' => 't_hisdata_Generator' ], 
        39 => [ 'real' => 't_realdata_ACSta', 'history' => 't_hisdata_ACSta' ],
        13 => [ 'real' => 't_realdata_generalair', 'history' => 't_hisdata_generalair' ],
        34 => [ 'real' => 't_realdata_Switch', 'history' => 't_hisdata_Switch' ],
        33 => [ 'real' => 't_realdata_TempHumi', 'history' => 't_hisdata_TempHumi' ],
        21 => [ 'real' => 't_realdata_BatRout', 'history' => 't_hisdata_BatRout' ],
    ],
    'notify_type' => [
        'sms'=>1,
        'email'=>2,
        'audio'=>4,
    ],
    'fieldLen'=>8,
];

